Another sysrq fix...
return self.xendPost(self.domainurl(id),
{'op' : 'pause' })
- def xend_domain_shutdown(self, id, reason, key=None):
+ def xend_domain_shutdown(self, id, reason, key=0):
return self.xendPost(self.domainurl(id),
{'op' : 'shutdown',
'reason' : reason,
except Exception, ex:
raise XendError(str(ex))
- def domain_shutdown(self, id, reason='poweroff', key=None):
+ def domain_shutdown(self, id, reason='poweroff', key=0):
"""Shutdown domain (nicely).
- poweroff: restart according to exit code and restart mode
- reboot: restart on exit
raise XendError('Invalid console id')
console.disconnect()
- def domain_shutdown(self, dom, reason, key=None):
+ def domain_shutdown(self, dom, reason, key=0):
"""Shutdown a domain.
"""
dom = int(dom)
self.addMethod(CMSG_MEM_REQUEST, 0, None)
self.registerChannel()
- def shutdown(self, reason, key=None):
+ def shutdown(self, reason, key=0):
"""Shutdown a domain.
reason shutdown reason